package middleware

import (
	"aflow/utils/sshTool"
	"fmt"
	"github.com/gin-gonic/gin"
)

// SSHPoolMiddleware 将SSHPool注入到gin上下文中
func SSHPoolMiddleware(pool sshTool.ClientPool) gin.HandlerFunc {
	return func(c *gin.Context) {
		c.Set("sshPool", pool)
		fmt.Print("初始化。。。。。")
		c.Next()
	}
}
